#!/usr/bin/python

import sgmllib
import lib
import lib.tags



datum = dict()

x = open("datum.qfx")
line = x.readline()

while line.find(":") != -1:
    key,val = line.strip().split(":")
    datum[key] = val
    line = x.readline()
    
parser = lib.ParserFactory()

parser.feed(x.read())
parser.close()
import pprint
x = pprint.PrettyPrinter(indent = 4)

print dir(parser.sTags)
